import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index'
import Home from '@/components/home'
import Course from '@/components/course'
import Note from '@/components/note'
import Me from '@/components/me'
import Collection from '@/me/collection/collection'
import Bill from '@/me/bill/bill'
import Details from '@/home/Details'
import Goods from '@/home/Goods'
import Chdetails from '@/home/course-list/Chdetails'
import Search from '@/home/Search'

import Personal from "@/me/personal/personal"

import Portrait from '@/me/personal/portrait/portrait'

import Nickname from '@/me/personal/nickname/nickname'

import Gender from '@/me/personal/gender/gender'

import Security from "@/me/security/security"

import Binding from "@/me/security/binding/binding"

import Modify from "@/me/security/modify/modify"

import Setup from "@/me/setup/setup"

import Push from "@/me/setup/push/push"

import Feedback from "@/me/setup/feedback/feedback"

import About from "@/me/setup/about/about"

import Screen from "@/me/bill/screen/screen"

import Tv from '@/me/collection/tv/tv'

import Stepone from '@/me/step/stepone/stepone'

import Steptow from '@/me/step/steptow/steptow'

import Stepthree from '@/me/step/stepthree/stepthree'

import HomeIndex from "@/me/home/home"

import Register from "@/me/register/register"

import Login from "@/me/login/login"

import Back from "@/me/back/back"

import Time from "@/me/setup/push/time/time"

import Play from "@/me/collection/tv/play/play"

import Autograph from "@/me/personal/autograph/autograph"

import Detaile from "@/components/course/detaile"
import Notes from "@/components/course/notes"
import Remind from "@/components/course/remind"
import Specific from "@/components/course/chaild/specific"
import Vedio from "@/home/vedio/vedio"

Vue.use(Router)

export default new Router({
	linkActiveClass:"active",
  	routes: [
  	{
  		path:"/",
  		component:HomeIndex
  	},
  	{
  		path:"/one",
  		component:Stepone
  	},
  	{
  		path:"/tow",
  		component:Steptow
  	},
  	{
  		path:"/three",
  		component:Stepthree
  	},
    {
      path: '/index',
      component: Index,
      redirect:"/index/home",
      children:[
		    {
		      path: 'home',
		      component: Home,
		      redirect:"/index/home/Details",
		      children:[
		      		{
		      			path:"Details",
		      			component:Details
		      		},
		      		{
		      			path:"Goods",
		      			component:Goods
		      		}
		      ]
		    },
      		{
		      path: '/index/home/course',
		      component: Course,
		      redirect:"/index/home/course/detaile",
		      children:[
		      	{
		      		path:"detaile",
		      		component:Detaile
		      	}
			    
		      ]
		    },
		    {
		      path: '/index/home/note',
		      component: Note
		    },
		    {
		      path: '/index/home/me',
		      component: Me

		    },
		    {
		    	path:"/index/home/remind",
		    	component:Remind

		    },

	      	{
	      		path:"/index/home/notes",
	      		component:Notes
	      	},
		    {
		    	path:"/index/home/specific",
		    	name:"specific",
		    	component:Specific
		    }
		    		    
      ]
    },
    {
		path:"/bill",
		component:Bill
	},
	{
		path:"/collection",
		component:Collection
	},
	{

		path:"/Chdetails",
		name:"Chdetails",
		component:Chdetails,
		      children:[
		      		{
		      			path:"Details",
		      			component:Details
		      		},
		      		{
		      			path:"Goods",
		      			component:Goods
		      		}
		      ]
	},
	{
		path:"/Search",
		component:Search
	},
	{
		path:"/personal",
		component:Personal
	},
	{
		path:"/portrait",
		component:Portrait
	},
	{
		path:"/nickname",
		component:Nickname
	},
	{
		path:"/gender",
		component:Gender
	},
	{
		path:"/security",
		component:Security
	},
	{
		path:"/binding",
		component:Binding
	},
	{
		path:"/modify",
		component:Modify
	},
	{
		path:"/setup",
		component:Setup
	},
	{
		path:"/push",
		component:Push
	},
	{
		path:"/feedback",
		component:Feedback
	},
	{
		path:"/about",
		component:About
	},
	{
		path:"/screen",
		component:Screen
	},
	{
		path:"/tv",
		component:Tv
	},
	{
		path:"/register",
		component:Register
	},
	{
		path:"/login",
		component:Login
	},
	{
		path:"/back",
		component:Back
	},
	{
		path:"/time",
		component:Time
	},
	{
		path:"/play",
		component:Play
	},
	{

		path:"/vedio",
		component:Vedio
	},
	{
		path:"/autograph",
		component:Autograph
	}
	
    
  ]
})
